home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / windows / wdj1096.zip / ZOLMAN.ZIP / MDIICONS.ZIP / ICONSVW.CPP < prev    next >
C/C++ Source or Header  |  1996-02-16  |  3KB  |  101 lines

  1. // iconsvw.cpp : implementation of the CIconsView class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "icons.h"
  6.  
  7. #include "iconsdoc.h"
  8. #include "iconsvw.h"
  9.  
  10. #ifdef _DEBUG
  11. #undef THIS_FILE
  12. static char BASED_CODE THIS_FILE[] = __FILE__;
  13. #endif
  14.  
  15. /////////////////////////////////////////////////////////////////////////////
  16. // CIconsView
  17.  
  18. IMPLEMENT_DYNCREATE(CIconsView, CFormView)
  19.  
  20. BEGIN_MESSAGE_MAP(CIconsView, CFormView)
  21.     //{{AFX_MSG_MAP(CIconsView)
  22.         // NOTE - the ClassWizard will add and remove mapping macros here.
  23.         //    DO NOT EDIT what you see in these blocks of generated code!
  24.     //}}AFX_MSG_MAP
  25.     // Standard printing commands
  26.     ON_COMMAND(ID_FILE_PRINT, CFormView::OnFilePrint)
  27.     ON_COMMAND(ID_FILE_PRINT_PREVIEW, CFormView::OnFilePrintPreview)
  28. END_MESSAGE_MAP()
  29.  
  30. /////////////////////////////////////////////////////////////////////////////
  31. // CIconsView construction/destruction
  32.  
  33. CIconsView::CIconsView()
  34.     : CFormView(CIconsView::IDD)
  35. {
  36.     //{{AFX_DATA_INIT(CIconsView)
  37.         // NOTE: the ClassWizard will add member initialization here
  38.     //}}AFX_DATA_INIT
  39.     // TODO: add construction code here
  40. }
  41.  
  42. CIconsView::~CIconsView()
  43. {
  44. }
  45.  
  46. void CIconsView::DoDataExchange(CDataExchange* pDX)
  47. {
  48.     CFormView::DoDataExchange(pDX);
  49.     //{{AFX_DATA_MAP(CIconsView)
  50.         // NOTE: the ClassWizard will add DDX and DDV calls here
  51.     //}}AFX_DATA_MAP
  52. }
  53.  
  54. /////////////////////////////////////////////////////////////////////////////
  55. // CIconsView printing
  56.  
  57. BOOL CIconsView::OnPreparePrinting(CPrintInfo* pInfo)
  58. {
  59.     // default preparation
  60.     return DoPreparePrinting(pInfo);
  61. }
  62.  
  63. void CIconsView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
  64. {
  65.     // TODO: add extra initialization before printing
  66. }
  67.  
  68. void CIconsView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
  69. {
  70.     // TODO: add cleanup after printing
  71. }
  72.  
  73. void CIconsView::OnPrint(CDC* pDC, CPrintInfo*)
  74. {
  75.     // TODO: add code to print the controls
  76. }
  77.  
  78. /////////////////////////////////////////////////////////////////////////////
  79. // CIconsView diagnostics
  80.  
  81. #ifdef _DEBUG
  82. void CIconsView::AssertValid() const
  83. {
  84.     CFormView::AssertValid();
  85. }
  86.  
  87. void CIconsView::Dump(CDumpContext& dc) const
  88. {
  89.     CFormView::Dump(dc);
  90. }
  91.  
  92. CIconsDoc* CIconsView::GetDocument() // non-debug version is inline
  93. {
  94.     ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CIconsDoc)));
  95.     return (CIconsDoc*)m_pDocument;
  96. }
  97. #endif //_DEBUG
  98.  
  99. /////////////////////////////////////////////////////////////////////////////
  100. // CIconsView message handlers
  101.